{% load bootstrap3 %}
<div class="modal fade" id="modal_edit">
    <div class="modal-dialog">
        <div class="modal-content">
            <form class="form" action={% url posturl|default_if_none:"home" %} method="post">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">{% block modal_title %}{{modal_title}}{% endblock %}</h4>
                </div>
                <div class="modal-body">
                    {% csrf_token %}
                    {% if form %}
                        {% bootstrap_form form %}
                    {% endif %}
                    <div class="clearfix"></div>
                </div>
                <div class="modal-footer">
                    <button type='submit' class='btn btn-success' >Save</button>
                    <button type='button' class='btn btn-default ' data-dismiss="modal">Close</button>
                </div>
            </form>
        </div>
    </div>
</div>
